<template>
  <div class="not-found">
    <h1>404 - 页面未找到</h1>
    <p>您访问的页面不存在，请检查地址或返回首页。</p>
    <button @click="goHome">返回首页</button>
  </div>
</template>
  
  <script>
export default {
  name: "NotFound",
  methods: {
    goHome() {
      this.$router.push("/");
    },
  },
};
</script>
  
<style scoped>
.not-found {
  text-align: center;
  margin-top: 50px;
}

h1 {
  font-size: 2rem;
  color: #ff4d4f;
}

p {
  font-size: 1.2rem;
  color: #666;
}

button {
  padding: 10px 20px;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
}

button:hover {
  background-color: #40a9ff;
}
</style>